import time
my = {1:'a',2:'b'}
for key,value in dict.items(my):
    print(key,value)
    time.sleep(1)